package cn.kgc83.shengyin.domain;

import cn.kgc83.shengyin.vo.SurveyQues2;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 调查问卷对象 d_survey
 *
 * @author ruoyi
 * @date 2023-08-01
 */
public class Survey extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 题号
     */
    //@Excel(name = "题号")
    private String choseques;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date posttime;

    /**
     * 参与调查人
     */
    //@Excel(name = "参与调查人")
    private Long userid;

    /**
     * 电话
     */
    //@Excel(name = "电话")
    private String phone;

    /**
     * 得分
     */
    //@Excel(name = "得分")
    private Integer score;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishtime;

    /**
     * 类别
     */
    //@Excel(name = "类别")
    private Long stype;

    /**
     * 用户选择
     */
    //@Excel(name = "用户选择")
    private String choseanswer;

    private List<SurveyQues2> ques = new ArrayList<>();

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public List<SurveyQues2> getQues() {
        return ques;
    }

    public void setQues(List<SurveyQues2> ques) {
        this.ques = ques;
    }

    public void setChoseques(String choseques) {
        this.choseques = choseques;
    }

    public String getChoseques() {
        return choseques;
    }

    public void setPosttime(Date posttime) {
        this.posttime = posttime;
    }

    public Date getPosttime() {
        return posttime;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getScore() {
        return score;
    }

    public void setFinishtime(Date finishtime) {
        this.finishtime = finishtime;
    }

    public Date getFinishtime() {
        return finishtime;
    }

    public void setStype(Long stype) {
        this.stype = stype;
    }

    public Long getStype() {
        return stype;
    }

    public void setChoseanswer(String choseanswer) {
        this.choseanswer = choseanswer;
    }

    public String getChoseanswer() {
        return choseanswer;
    }

    @Override
    public String toString() {
        return "Survey{" +
                "id=" + id +
                ", choseques='" + choseques + '\'' +
                ", posttime=" + posttime +
                ", userid=" + userid +
                ", phone='" + phone + '\'' +
                ", score=" + score +
                ", finishtime=" + finishtime +
                ", stype=" + stype +
                ", choseanswer='" + choseanswer + '\'' +
                '}';
    }
}
